    std::reduce(
        ...
        result.begin(), // This is wrong. result.begin() is an iterator, not an array.
        ...
    );
